<?php
/**
 * 分拣配货
 * User: poptser@foxmail.com
 * Date: 2018/3/9
 * Time: 15:45
 */

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;



Route::post('/login', 'Sorting\LoginController@login');


Route::group([
    'namespace' =>  'Sorting'//,'middleware'=>['auth:sorting']
    ], function () {
    //获取配送合作商列表概览
    //Route::post('/getCompany', 'SortingController@getCompanyOverview');
    Route::post('/getCompany', 'SortingNewController@getCompanyOverview');
    //获取配送时间列表概览
    //Route::post('/getTimeList', 'SortingController@getTimeList');
    Route::post('/getTimeList', 'SortingNewController@getTimeList');
    //获取区域订单概览
    //Route::post('/getZoneList', 'SortingController@getZoneList');
    Route::post('/getZoneList', 'SortingNewController@getZoneList');
    //获取一个拣货单
    //Route::post('/getSortingOrder', 'SortingController@getSortingOrder');
    Route::post('/getSortingOrder', 'SortingNewController@getSortingOrder');
    //获取拣货单详情
    Route::post('/getSortingOrderInfo', 'SortingController@getSortingOrderInfo');

    //获取配货单历史记录
    Route::post('/getSortingHistory', 'SortingController@getSortingHistory');
    //设置拣货单完成
    Route::post('/setSortingOrderComplete', 'SortingController@setSortingOrderComplete');
    //获取当前拣货单列表
    Route::post('/getSortingIng', 'SortingController@getSortingIng');
    //退回拣货单
    Route::post('/setUnSortingIng', 'SortingController@setUnSortingIng');
    //获取订单概览
    Route::post('/getOrderOverview', 'SortingController@getOrderOverview');
    //打印拣货单
    Route::post('/printSortingOrder', 'SortingController@sortingOrderPrint');
    //获取配货统计
    Route::post('/getSortingCount', 'SortingController@getSortingCount');




    //设置拣货单订单商品缺货数
    Route::post('/setSortingOrderOdd', 'BaseController@setSortingOrderOdd');
    //打印质检分袋单
    Route::post('/QualityBagsPrint', 'QualityController@orderBagsPrint');
    //获取未质检列表
    Route::post('/QualityGetQualityList', 'QualityController@QualityGetQualityList');
    //质检员获取订单商品列表
    Route::post('/QualityGetGoodsList', 'QualityController@getGoodsList');
    //质量确认
    Route::post('/QualityConfirm', 'QualityController@goodsConfirm');
    //回仓处理为次品/门店仓
    Route::post('/QualityGoodsBack', 'QualityController@goodsToBack');
});